package q10.unittests;

import junit.framework.TestCase;
import q10.Arbori.*;
import q10.Functii.FunctiiElementare.*;

public class NecunoscutaTest extends TestCase {

	Nod n;
	protected void setUp() throws Exception {
		n=new Necunoscuta();
	}

	protected void tearDown() throws Exception {
		n=null;
	}

	public void testCalcul() {
		double rez=this.n.getX();
		assertEquals(rez,this.n.calcul());
	}

	public void testDerivare() {
		assertEquals("1",this.n.derivare());
	}

	public void testCalculDerivata() {
		double rez=1;
		assertEquals(rez,this.n.calculDerivata());
	}

	public void testToString() {
		assertEquals("x",this.n.toString());
	}

}
